# event card deck
event_data=dict(
    watershortage_one=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=True,
            title='WATER SHORTAGE',
            flavor='I think that you and I can come up with some kind of an understanding.  This is not the only crisis that I\'m dealing with.  The water shortage affects the entire fleet.  -Lee Adama',
            choice_one='-1 food',
            choice_two='The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-1)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),
    watershortage_two=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='WATER SHORTAGE',
            flavor='I think that you and I can come up with some kind of an understanding.  This is not the only crisis that I\'m dealing with.  The water shortage affects the entire fleet.  -Lee Adama',
            choice_one='-1 food',
            choice_two='The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-1)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            )
        ),
    
    watershortage_three=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=True,
            title='WATER SHORTAGE',
            flavor='I think that you and I can come up with some kind of an understanding.  This is not the only crisis that I\'m dealing with.  The water shortage affects the entire fleet.  -Lee Adama',
            choice_one='-1 food',
            choice_two='The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-1)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            )
        ),
    
    watershortage_four=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=False,
            title='WATER SHORTAGE',
            flavor='I think that you and I can come up with some kind of an understanding.  This is not the only crisis that I\'m dealing with.  The water shortage affects the entire fleet.  -Lee Adama',
            choice_one='-1 food',
            choice_two='The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-1)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')
                )
            )
        ),

    watershortage_five=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=True,
            title='WATER SHORTAGE',
            flavor='I think that you and I can come up with some kind of an understanding.  This is not the only crisis that I\'m dealing with.  The water shortage affects the entire fleet.  -Lee Adama',
            choice_one='-1 food',
            choice_two='The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-1)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                )
            )
        ),

    foodshortage_one=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='FOOD STORAGE',
            flavor='Get the names of those ships.  Tell their captains to go on emergency rations immediately.',
            choice_one='-2 food',
            choice_two='-1 food.  The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),

        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-2)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_three=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),                            
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                )
            )
        ),

    foodshortage_two=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='FOOD STORAGE',
            flavor='Get the names of those ships.  Tell their captains to go on emergency rations immediately.',
            choice_one='-2 food',
            choice_two='-1 food.  The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-2)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_three=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),                            
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                )
            )
        ),

    foodshortage_three=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='FOOD STORAGE',
            flavor='Get the names of those ships.  Tell their captains to go on emergency rations immediately.',
            choice_one='-2 food',
            choice_two='-1 food.  The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-2)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_three=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),                            
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    foodshortage_four=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='FOOD STORAGE',
            flavor='Get the names of those ships.  Tell their captains to go on emergency rations immediately.',
            choice_one='-2 food',
            choice_two='-1 food.  The President discards 2 Skill Cards; then the current player discards 3 Skill Cards.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-2)
                            )
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_three=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-3)
                            ),                            
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                )
            )
        ),
       
    riots_one=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='RIOTS',
            flavor='Don\'t be so sure, Commander.  Rebellions are contagious.  People are already rioting over the water crisis.  We can\'t afford to destabilize this government right now.',
            choice_one='-1 food, -1 morale',
            choice_two='-1 population, -1 fuel',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='resource',
                            arguments=dict(category='morale',value=-1)
                            ),                            
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='population',value=-1)
                            ),
                        effect_two=dict(
                            function='resource',
                            arguments=dict(category='fuel',value=-1)
                            ),                            
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='raiders')
                ),
            )
        ),

    riots_two=dict(
        
        display=dict(
            cylons='basestar_nukes',
            jump=True,
            title='RIOTS',
            flavor='Don\'t be so sure, Commander.  Rebellions are contagious.  People are already rioting over the water crisis.  We can\'t afford to destabilize this government right now.',
            choice_one='-1 food, -1 morale',
            choice_two='-1 population, -1 fuel',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='resource',
                            arguments=dict(category='morale',value=-1)
                            ),                            
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resource',
                            arguments=dict(category='population',value=-1)
                            ),
                        effect_two=dict(
                            function='resource',
                            arguments=dict(category='fuel',value=-1)
                            ),                            
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),

    resignation=dict(
        
        display=dict(
            cylons='basestar_nukes',
            jump=False,
            title='REQUESTED RESIGNATION',
            flavor='I\'m going to have to ask you for your resignation, Madam President.  -William Adama',
            choice_one='The President and Admiral both discard 2 Skill Cards.',
            choice_two='The President may choose to give the President title to the Admiral, or move to The "Brig" location.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-2)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='admiral',category='any',value=-2)
                            ), 
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='choice',
                            arguments=dict(
                                player='president',
                                result_one=dict(
                                    effect_one=dict(
                                        function='title',
                                        arguments=dict(title='president',player='admiral')
                                        ),
                                    ),
                                result_two=dict(
                                    effect_one=dict(
                                        function='move',
                                        arguments=dict(player='president',location='brig')
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')
                ),
            ),
        ),

    rescuefleet=dict(
        
        display=dict(
            cylons='raiders',
            jump=True,
            title='RESCUE THE FLEET',
            flavor='The Cylons are waiting for us back there.  How long will that take to calculate once we get back there?  -Saul Tigh',
            choice_one='-2 population',
            choice_two='-1 morale.  Place 1 basestar and 3 raiders in front of Galactica and 3 civilian ships behind it.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-2)
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='ships',
                            arguments=dict(category='basestar',value=1,loc_from='cylon fleet',loc_to='west')
                            ),
                        effect_three=dict(
                            function='ships',
                            arguments=dict(category='raider',value=3,loc_from='cylon fleet',loc_to='west')
                            ),
                        effect_four=dict(
                            function='ships',
                            arguments=dict(category='civilian',value=3,loc_from='human fleet',loc_to='east')
                            ),                            
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),

    rescuemission_one=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=True,
            title='RESCUE MISSION',
            flavor='Roger that, Boomer.  Search and rescue ops are underway for Starbuck.  Bring Hotdog in, the Old Man wants to talk to him.  -Anastasia Dualla',
            choice_one='-1 morale, and the current player is sent to "Sickbay."',
            choice_two='-1 fuel and destroy 1 raptor.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='current',location='sick')
                            ),                            
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='fuel',value=-1)
                            ),
                        effect_two=dict(
                            function='ships',
                            arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')                
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),
     
    rescuemission_two=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='RESCUE MISSION',
            flavor='Roger that, Boomer.  Search and rescue ops are underway for Starbuck.  Bring Hotdog in, the Old Man wants to talk to him.  -Anastasia Dualla',
            choice_one='-1 morale, and the current player is sent to "Sickbay."',
            choice_two='-1 fuel and destroy 1 raptor.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='current',location='sick')
                            ),                            
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='fuel',value=-1)
                            ),
                        effect_two=dict(
                            function='ships',
                            arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),
       
    sleep=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=True,
            title='SLEEP DEPRIVATION',
            flavor='Five days now.  There are limits... to the human body.  The human mind.  Tolerances you can\'t push beyond.  -Gaius Baltar',
            choice_one='Return all undamaged vipers on the game board to the "Reserves."  Then send the current player to "Sickbay."',
            choice_two='-1 fuel and destroy 1 raptor.',
            ),

        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='ships',
                            arguments=dict(category='viper',value='all',loc_from='board',loc_to='hangar')
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='current',location='sick')
                            ),                            
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='fuel',value=-1)
                            ),
                        effect_two=dict(
                            function='ships',
                            arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')                
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),

    detector=dict(
        display=dict(
            cylons='heavies',
            jump=False,
            title='BUILD CYLON DETECTOR',
            flavor='Commander, the truth is...there is one way.  I didn\'t want to have to ask you for this, but what I really need to complete the project...is a nuclear warhead.  -Gaius Baltar',
            choice_one='Discard 1 nuke token.  If you do not have any nuke tokens, you may not choose this option.',
            choice_two='-1 morale, and the Admiral discards 2 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='nukes',
                            arguments=dict(action='discard',value=1)
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='admiral',category='any',value=2)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
                ),
            ),
        ),

    martial=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=False,
            title='DECLARE MARTIAL LAW',
            flavor='The government cannot function under the current circumstances, I have decided to dissolve the Quorum of Twelve.  And as of this moment, I have declared martial law.  -Saul Tigh',
            choice_one='-1 morale, and the Admiral receives the President title.',
            choice_two='-1 population, and the Admiral discards 2 Skill Cards.',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='admiral',
                    result_one=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='title',
                            arguments=dict(title='president',player='admiral')
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='admiral',category='any',value=2)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')                
                ),
            ),
        ),

    rescuesurvivors=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='RESCUE CAPRICA SURVIVORS',
            flavor='The Cylons have a plan for Caprica.  But they haven\'t killed everyone.  I think our first order of business has to be planning a rescue mission back to Caprica.  -Kara Thrace',
            choice_one='-1 fuel, -1 food, +1 population',
            choice_two='-1 morale',
            ),
        
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='president',
                    result_one=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='fuel',value=-1)
                            ),
                        effect_two=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_three=dict(
                            function='resources',
                            arguments=dict(category='population',value=+1)
                            ),                        
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),             
            ),
        ),

    # Challenge Type Events:
    tracking=dict(
        display=dict(
            cylons='raiders',
            jump=False,
            title='CYLON TRACKING DEVICE',
            flavor='We\'re installing a Cylon transponder aboard your raptor.  In theory, it should allow you to approach the basehip without being fired upon.  -William Adama',
            success='No effect',
            partial=None,
            failure='Destroy 1 raptor and place a basestar in front of Galactica and 2 civilian ships behind it.',
            level=10,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=True,            
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=10,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=True,
                    engineering=True,                    
                    success=dict(
                        effect_one=dict(
                            function=None,
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='ships',
                            arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                            ),
                        effect_two=dict(
                            function='ships',
                            arguments=dict(category='basestar',value=1,loc_from='cylon fleet',loc_to='west')
                            ),
                        effect_three=dict(
                            function='ships',
                            arguments=dict(category='civilian',value=2,loc_from='human fleet',loc_to='east')
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            ),
        ),

    revolt=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='PRISONER REVOLT',
            flavor='Before I release my captives...I demand the immediate resignation of Laura Roslin and her ministers.  -Tom Zarek',
            success='No effect',
            partial='6+:  -1 population',
            failure='-1 population, and the President chooses another player to receive the President title.',
            level=11,
            threshold=6,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=11,
                    threshold=6,
                    politics=True,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,                    
                    success=dict(
                        effect_one=dict(
                            function=None,
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        effect_two=dict(
                            function='title',
                            arguments=dict(title='president',player='president_choice')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),

    reunion=dict(
        display=dict(
            cylons='raiders',
            jump=False,
            title='UNEXPECTED REUNION',
            flavor='I can\'t believe you\'re alive.  -Saul Tigh  Can\'t believe it myself.  Don\'t even remember the last few weeks... It\'s weeks, right?',
            success='No effect',
            partial=None,
            failure='-1 morale, and the current player discards his hand of Skill Cards.',
            level=8,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=8,
                    threshold=None,
                    politics=True,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,                    
                    success=dict(
                        effect_one=dict(
                            function=None,
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value='all')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            ),
        ),

    discovery=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='LEGENDARY DISCOVERY',
            flavor='...the aerial survey turned up evidence of at least one city on the surface.  -Billy Keikeya',
            level=14,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=False,
            success='Place this card next to the Kobol Objective card.  It counts as 1 distance.',
            partial=None,
            failure='-1 food and destroy 1 raptor.',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=14,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=True,
                    engineering=False,                    
                    success=dict(
                        effect_one=dict(
                            function='distance',
                            arguments=dict(value=+1)
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='ships',
                            arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='raiders')
                ),
            ),
        ),
    virus=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='CYLON VIRUS',
            flavor='It\'s the virus, sir.  I think it spawned copies of itself in some of our computer systems.  It\'s knocked out main power and auxiliary units',
            level=13,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='All characters in the "FTL Control" location are sent to "Sickbay."  Then place 1 centurion marker at the start of the Boarding Party track.',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=13,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='move',
                            arguments=dict(player='ftl',location='sick')
                            ),
                        effect_two=dict(
                            function='boarding',
                            arguments=dict(activate=False,value=+1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='raiders')
                ),
            ),
        ),
    
    resistance=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='RESISTANCE',
            flavor='Three other ships are also refusing to resupply Galactica until the president has been reinstated.',
            level=12,
            threshold=9,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial='9+:  -1 food',
           	failure='-1 food, -1 fuel',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=12,
                    threshold=9,
                    politics=True,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='resources',
                            arguments=dict(category='fuel',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),                
        ),

    unidentifiedship=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='UNIDENTIFIED SHIP',
            flavor='The Adriatic is in weapons range, and she\'s got ship-to-ship missiles.  Tom, that thing is moving fast.  If we\'re gonna shoot it down, we\'d better shoot it down!  -Meier',
            level=10,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=False,
            success='No Effect',
           	partial=None,
           	failure='-1 population',
        ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=10,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=True,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestar',
                arguments=dict(action='raiders')
                ),
            ),
        ),

    lossofafriend=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='LOSS OF A FRIEND',
            flavor='She was a vital, living person...aboard my ship for almost two years.  She couldn\'t have been just a machine.  Could you love a machine?  -William Adama',
            level=9,
            threshold=7,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial='7+:  The current player discards 2 Skill Cards',
            failure='-1 morale, and the current player discards 2 Skill Cards.',
        ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=9,
                    threshold=7,
                    politics=True,
                    tactics=True,
                    leadership=False,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-2)
                            ),
                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-2)
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
#                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),

    explosives=dict(
        display=dict(
            cylons='raiders',
            jump=False,
            title='MISSING G4 EXPLOSIVES',
            flavor='There are, at this moment, six G-4 detonators missing from the small arms locker on deck 15.',
            level=7,
            threshold=None,
            politics=False,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='-1 food, and all characters in the "Armory" location are sent to the "Brig".',
        ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=7,
                    threshold=None,
                    politics=False,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='skills',
##                            arguments=dict(player='current',category='any',value=-2)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='armory',location='brig')
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
#                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),            
            ),
        ),

    breach=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='SECURITY BREACH',
            flavor='There have been a string of security incidents aboard ship, sir.  The water tank explosion, the discovery of explosives aboard a raptor, and now this.  -Hadrian',
            level=6,
            threshold=None,
            politics=False,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='-1 morale, and all characters in the "Command" location are sent to "Sickbay."',
        ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=6,
                    threshold=None,
                    politics=False,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='skills',
##                            arguments=dict(player='current',category='any',value=-2)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='command',location='sick')
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='basestar',
                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),            
            ),
        ),
       
    accusation=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='CYLON ACCUSATION',
            flavor='Watch the ammo hoists for the main guns - you\'ve got a red light right there.  -Saul Tigh',
            level=11,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=True,
            success='No Effect',
            partial=None,
            failure='Damage 2 vipers in space areas.  All characters in the "Weapon\'s Control" location are sent to "Sickbay."',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=11,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=True,
                    engineering=True,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='skills',
##                            arguments=dict(player='current',category='any',value=-2)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='ships',
                            arguments=dict(category='viper',value=2,loc_from='space',loc_to='damaged')
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='weapons',location='sick')
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='basestar',
                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),            
            ),
        ),

    malfunction=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='WEAPON MALFUNCTION',
            flavor='Watch the ammo hoists for the main guns - you\'ve got a red light right there.  -Saul Tigh',
            level=11,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=True,
            success='No Effect',
            partial=None,
            failure='Damage 2 vipers in space areas.  All characters in the "Weapon\'s Control" location are sent to "Sickbay."',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=11,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=True,
                    engineering=True,
                    success=dict(
                        effect_one=dict(
                            function=None
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='skills',
##                            arguments=dict(player='current',category='any',value=-2)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='ships',
                            arguments=dict(category='viper',value=2,loc_from='space',loc_to='damaged')
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='weapons',location='sick')
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='basestar',
                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),            
            ),
        ),

    collusion=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='GUILT BY COLLUSION',
            flavor='Guess you haven\'t heard... Cylons don\'t have rights.  Know what we do to Cylons, Chief?  -Saul Tigh',
            level=9,
            threshold=None,
            politics=False,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            success='The current player may choose a character to move to the "Brig"',
            partial=None,
            failure='-1 morale',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=9,
                    threshold=None,
                    politics=False,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,

                    success=dict(
                        effect_one=dict(
                            function='move',
                            arguments=dict(player='current_choice',location='brig')
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='skills',
##                            arguments=dict(player='current',category='any',value=-2)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
#                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),            
            ),
        ),

    jumpfailure=dict(
        display=dict(
            cylons='basestar_raiders',
            jump=False,
            title='JUMP COMPUTER fail_textURE',
            flavor='What\'s going on, Saul?  Where\'s the fleet?  -Ellen Tigh  We don\'t know; they jumped to another location.  -Saul Tigh',
            level=7,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=False,
            engineering=True,
            success='No Effect',
            partial=None,
            failure='-1 population and move the fleet token 1 space towards the start of the Jump Preparation track.',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=7,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=False,
                    engineering=True,

                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(player='current_choice',location='brig')
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='skills',
##                            arguments=dict(player='current',category='any',value=-2)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        effect_two=dict(
                            function='jump',
                            arguments=dict(value=-1)
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),            
            ),
        ),

    olympic=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='OLYMPIC CARRIER',
            flavor='We have new orders.  We\'re directed to... destroy the Olympic Carrier and then return to Galactica.  -Sharon Valerii  It\'s a civilian ship... -Kara Thrace',
            level=11,
            threshold=8,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=True,
            engineering=False,
            success='No Effect',
            partial='8+:  -1 population',
            failure='-1 morale, -1 population',
        ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=11,
                    threshold=8,
                    politics=True,
                    tactics=True,
                    leadership=False,
                    piloting=True,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(player='current_choice',location='brig')
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    mandatory=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='MANDATORY TESTING',
            flavor='I\'d like you to call me the moment Commander Adama\'s test is complete.  Will you do that?  -Laura Roslin',
            level=13,
            threshold=9,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,
            success='The President looks at 1 random Loyalty Card of the current player.',
            partial='9+:  No effect',
            failure='-1 morale',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=13,
                    threshold=9,
                    politics=True,
                    tactics=True,
                    leadership=False,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function='loyalty',
                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='resources',
##                            arguments=dict(category='population',value=-1)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),
       
    hangaraccident=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='HANGAR ACCIDENT',
            flavor='I\'d like you to call me the moment Commander Adama\'s test is complete.  Will you do that?  -Laura Roslin',
            level=10,
            threshold=7,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=True,
            success='No Effect',
            partial='7+:  -1 population',
            failure='-1 population and damage 2 vipers in the "Reserves."',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=10,
                    threshold=7,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=True,
                    engineering=True,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        effect_two=dict(
                            function='ships',
                            arguments=dict(category='viper',value=2,loc_from='hangar',loc_to='damaged')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    detectorsabotage=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='DETECTOR SABOTAGE',
            flavor='They\'re trying to kill me.  -Baltar  Me, me - always me.  They\'re trying to destroy your work.  Destroying you is an added bonus.  -Six',
            level=8,
            threshold=None,
            politics=False,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='All characters in the "Research Lab" location are sent to "Sickbay."  Keep this card in play.  Players may not look at other players\' Loyalty Cards.',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=8,
                    threshold=None,
                    politics=False,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='resources',
##                            arguments=dict(category='population',value=-1)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='move',
                            arguments=dict(player='research',location='sick')
                            ),
                        effect_two=dict(
                            function='sabotage',
                            arguments=dict(status='damaged')                            
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    investigations=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='TERRORIST INVESTIGATIONS',
            flavor='I have appointed an independent tribunal to investigate the circumstances surrounding the explosion.  -Laura Roslin',
            level=12,
            threshold=6,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,
            success='Current player looks at 1 random Loyalty Card belonging to any player.',
            partial='6+:  No Effect',
            failure='-1 morale',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=12,
                    threshold=6,
                    politics=True,
                    tactics=True,
                    leadership=False,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function='loyalty',
                            arguments=dict(viewer='current',player='any',value=1)
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(category='population',value=-1)
                            ),
                        ),
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),
     
    terroristbomber=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='TERRORIST BOMBER',
            flavor='Sir, we\'ve found a Marine sentry dead near the small arms locker on C level.  The locker was entered and explosives were taken.  -Hadrian',
            level=9,
            threshold=None,
            politics=False,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='-1 morale, and the current player is sent to sickbay.',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=9,
                    threshold=None,
                    politics=False,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='resources',
##                            arguments=dict(category='population',value=-1)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='move',
                            arguments=dict(player='current',location='sick')
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    prisonlabor=dict(
        display=dict(
            cylons='raiders',
            jump=False,
            title='PRISON LABOR',
            flavor='They\'re going to work for their points and they\'re going to earn their freedom.',
            level=10,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='-1 morale, -1 food',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=10,
                    threshold=None,
                    politics=True,
                    tactics=True,
                    leadership=True,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='resources',
##                            arguments=dict(category='population',value=-1)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),
            ),
        ),

    elections=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='ELECTIONS LOOM',
            flavor='You\'re frakking right about democracy and consent of the people.  I believe in those things.  And we\'re going to have them.  -Lee Adama',
            level=8,
            threshold=5,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial='5+:  -1 morale',
            failure='-1 morale, and the President discards 4 Skill Cards.',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=8,
                    threshold=5,
                    politics=True,
                    tactics=True,
                    leadership=False,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='skills',
                            arguments=dict(player='president',category='any',value=-4)
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    lowsupplies=dict(
        display=dict(
            cylons='raiders',
            jump=False,
            title='LOW SUPPLIES',
            flavor='Gonna be riots on those ships.  Civilians don\'t like hearing they can\'t take a bath or wash their clothes or drink more than a thimble a day.',
            level=7,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='-1 morale.  If food is less than 6, -1 additional morale.',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=7,
                    threshold=None,
                    politics=True,
                    tactics=True,
                    leadership=False,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='resources',
##                            arguments=dict(category='population',value=-1)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        effect_two=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),
            ),
        ),

    crashlanding=dict(
        display=dict(
            cylons='heavies',
            jump=False,
            title='CRASH LANDING',
            flavor='Gotta put down, gotta put down, get this thing on the ground, Crashdown.  Everybody get your masks on!  -Crashdown',
            level=6,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=False,
            success='No Effect',
            partial=None,
            failure='The Admiral may spend 1 fuel.  If he does not, -1 morale, and the current player is sent to "Sickbay."',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=6,
                    threshold=None,
                    politics=False,
                    tactics=False,
                    leadership=True,
                    piloting=True,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
##                    partial=dict(
##                        effect_one=dict(
##                            function='resources',
##                            arguments=dict(category='population',value=-1)
##                            ),
##                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='choice',
                            arguments=dict(
                                player='admiral',
                                result_one=dict(
                                    effect_one=dict(
                                        function='resource',
                                        arguments=dict(category='fuel',value=-1)
                                        )
                                    ),
                                result_two=dict(
                                    effect_one=dict(
                                        function='resources',
                                        arguments=dict(category='morale',value=-1)
                                        ),
                                    effect_two=dict(
                                        function='move',
                                        arguments=dict(player='current',location='sick')
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),
            ),
        ),

    witchhunt=dict(
        display=dict(
            cylons='heavies',
            jump=True,
            title='WITCH HUNT',
            flavor='This morning a mob of men and women on one of the ships trapped a man they thought was a Cylon...and tore him physically limb from limb.  -Laura Roslin',
            level=10,
            threshold=6,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,
            success='No Effect',
            partial='6+:  -1 morale',
            failure='-1 morale.  Current player chooses a character and moves him to "Sickbay."',
            ),
        actions=dict(
            action_one=dict(
                function='challenge',
                arguments=dict(
                    level=10,
                    threshold=6,
                    politics=True,
                    tactics=True,
                    leadership=False,
                    piloting=False,
                    engineering=False,
                    success=dict(
                        effect_one=dict(
                            function=None,
##                            arguments=dict(viewer='president',player='current',value=1)
                            ),
                        ),
                    partial=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),                    
                    failure=dict(
                        effect_one=dict(
                            function='move',
                            arguments=dict(player='current_choice',location='sick')
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='heavies',
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    # Challenge & Choice Events

    bomb=dict(
        display=dict(
            title='BOMB THREAT',
            flavor='I\'ve planted a nuclear warhead aboard one of your ships.  -Leoben Conoy',
            player='current',
            level=13,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,        
            choice_one='challenge',
            choice_two='Roll a die.  If 4 or lower, trigger the "Fail" effect of this.',
            success='No Effect',
            partial=None,
            failure='-1 morale and draw a civilian ship and destroy it.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=13,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=True,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(viewer='president',player='current',value=1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='morale',value=-1)
                                    ),
                                effect_two=dict(
                                    function='ships',
                                    arguments=dict(category='civilian',value=1,loc_from='human fleet',loc_to='destroyed')
                                    ),                                
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='roll',
                            arguments=dict(
                                threshold=4,
                                result=dict(
                                    effect_one=dict(
                                        function='resources',
                                        arguments=dict(category='morale',value=-1)
                                        ),
                                    effect_two=dict(
                                        function='ships',
                                        arguments=dict(category='civilian',value=1,loc_from='human fleet',loc_to='destroyed')
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            ),
        ),

    traitor=dict(
        display=dict(
            title='A TRAITOR ACCUSED',
            flavor='I\'m here to see that you\'re exposed and sentenced to death as the traitor you really are.  -Miss Godfrey',
            player='current',
            level=8,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,            
            choice_one='challenge',
            choice_two='The current player discards 5 Skill Cards.',
            success='No Effect',
            partial=None,
            failure='The current player chooses a character to send to the "Brig".',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=8,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=False,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(viewer='president',player='current',value=1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='move',
                                    arguments=dict(player='current_choice',location='brig')
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            effect_one=dict(
                                function='skills',
                                arguments=dict(player='current',category='any',value=-5)
                                ),
                            ),
                        ),
                    ),
                ),
            ),
        ),

    analyzeenemy=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='ANALYZE ENEMY FIGHTER',
            flavor='I don\'t know how Starbuck got this thing moving, much less flew it.  -Galen Tyrol',
            player='current',
            level=7,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=False,
            engineering=True,                        
            choice_one='challenge',
            choice_two='Roll a die.  If 4 or lower, -1 population and the current player discards 2 Skill Cards.',
            success='Repair 1 destroyed raptor',
            partial=None,
            failure='-1 population.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=7,
                            threshold=None,
                            politics=False,
                            tactics=False,
                            leadership=True,
                            piloting=False,
                            engineering=True,
                            success=dict(
                                effect_one=dict(
                                    function='ships',
                                    arguments=dict(category='raptor',value=1,loc_from='destroyed',loc_to='hangar')
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='population',value=-1)
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='roll',
                            arguments=dict(
                                threshold=4,
                                result=dict(
                                    effect_one=dict(
                                        function='resources',
                                        arguments=dict(category='population',value=-1)
                                        ),
                                    effect_two=dict(
                                        function='skills',
                                        arguments=dict(player='current',category='any',value=-2)
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    keeptabs=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='KEEP TABS ON VISITOR',
            flavor='Marines tailed her all over the ship.  They say she went around a corner then she was gone  -Saul Tigh',
            player='current',
            level=12,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,            
            choice_one='challenge',
            choice_two='The current player discards 4 random Skill Cards.',
            success='No Effect',
            partial=None,
            failure='Roll a die.  If 4 or lower, -2 population.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=12,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=True,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(category='raptor',value=1,loc_from='destroyed',loc_to='hangar')
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='roll',
                                    arguments=dict(
                                        threshold=4,
                                        result=dict(
                                            effect_one=dict(
                                                function='resources',
                                                arguments=dict(category='population',value=-2)
                                                ),
                                            ),
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='current',category='random',value=-4)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    informingpublic=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='INFORMING THE PUBLIC',
            flavor='I also strongly recommend alerting the public to the Cylon threat.  -Hadrian',
            method='current',
            level=7,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,            
            choice_one='challenge',
            choice_two='The current player discards 4 random Skill Cards.',
            success='No Effect',
            partial=None,
            failure='Roll a die.  If 4 or lower, -2 population.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=7,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=False,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(category='raptor',value=1,loc_from='destroyed',loc_to='hangar')
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='roll',
                                    arguments=dict(
                                        threshold=4,
                                        result=dict(
                                            effect_one=dict(
                                                function='resources',
                                                arguments=dict(category='population',value=-2)
                                                ),
                                            ),
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='current',category='random',value=-4)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    scoutingwater=dict(
        display=dict(

            title='SCOUTING FOR WATER',
            flavor='There\'s panic in the air.  If you don\'t find a source of water out there...  -Lee Adama',
            player='current',
            level=9,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=False,            
            choice_one='challenge',
            choice_two='-1 food',
            success='+1 food',
            partial=None,
            failure='-1 fuel and detroy 1 raptor',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=9,
                            threshold=None,
                            politics=False,
                            tactics=False,
                            leadership=True,
                            piloting=True,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='food',value=+1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='fuel',value=-1)
                                    ),
                                effect_two=dict(
                                    function='ships',
                                    arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                                    ),                                
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-1)
                            ),
                        ),
                    ),
                ),
##            action_two=dict(
##                function='raiders',
##                arguments=dict(action='raiders')
##                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),
            ),
        ),

    forcedwater=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='FORCED WATER MINING',
            flavor='You\'re going to tell your men to help us get that water off the moon.  -Lee Adama',
            player='current',
            level=17,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=True,            
            choice_one='challenge',
            choice_two='+1 food, -1 morale, and each player discards 1 random Skill Card.',
            success='+1 food',
            partial=None,
            failure='-1 population, -1 morale',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=17,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=True,
                            piloting=False,
                            engineering=True,
                            success=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='food',value=+1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='population',value=-1)
                                    ),
                                effect_two=dict(
                                    function='resources',
                                    arguments=dict(category='morale',value=-1)
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=+1)
                            ),
                        effect_two=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),                        
                        effect_three=dict(
                            function='skills',
                            arguments=dict(player='all',category='random',value=1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    cylonscreenings=dict(
        display=dict(
            cylons='raiders',
            jump=False,
            title='CYLON SCREENINGS',
            flavor='We should test the people in the most sensitive positions first.  -William Adama',
            player='current',
            level=9,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,            
        
            choice_one='challenge',
            choice_two='Each player discards 2 Skill Cards.',
            success='No Effect',
            partial=None,
            failure='-1 morale, and the current player looks at 1 random Loyalty Card belonging to the President or Admiral.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=9,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=False,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(category='raptor',value=1,loc_from='destroyed',loc_to='hangar')
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='morale',value=-1)
                                        ),
                                effect_two=dict(
                                    function='choice',
                                    arguments=dict(
                                        player='current',
                                        result_one=dict(
                                            effect_one=dict(
                                                function='loyalty',
                                                arguments=dict(viewer='current',player='admiral',value=1)
                                                ),
                                            ),
                                        result_two=dict(
                                            effect_one=dict(
                                                function='loyalty',
                                                arguments=dict(viewer='current',player='president',value=1)
                                                ),
                                            ),                                            
                                        ),                                
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
##            action_three=dict(
##                function='jump',
##                arguments=dict(value=+1)
##                ),
            ),
        ),

    watersabotaged=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='WATER SABOTAGED',
            flavor='Every tank on the starboard side has rupturred.  We\'re venting all our water directly into space.  -Saul Tigh',
            player='current',
            level=13,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=True,
            piloting=False,
            engineering=False,            
        
            choice_one='challenge',
            choice_two='-1 food',
            success='No Effect',
            partial=None,
            failure='-2 food',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=13,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=True,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(category='raptor',value=1,loc_from='destroyed',loc_to='hangar')
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='food',value=-2)
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='food',value=-2)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    prophecy=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=False,
            title='FULFILLER OF PROPHECY',
            flavor='The scrolls tell us that a dying leader will lead us to salvation.  -Porter',
            player='current',
            level=6,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,            
            choice_one='challenge',
            choice_two='The current player discards 1 Skill Card.  After the Activate Cylon Ships step, return to the Resolve Crisis step (Draw a new Crisis Card and resolve it.)',
            success='The current player draws 1 politics Skill Card',
            partial=None,
            failure='-1 population',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=6,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=False,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function='skills',
                                    arguments=dict(player='current',category='politics',value=1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='population',value=-1)
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='skills',
                            arguments=dict(player='current',category='any',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='crisis',
#                arguments=dict(value=+1)
                ),
            ),
        ),

    admiralgrilled=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='ADMIRAL GRILLED',
            flavor='What exactly are you planning to do?  Are you declaring martial law?"  -Tom Zerek',
            player='current',
            level=9,
            threshold=None,
            politics=True,
            tactics=True,
            leadership=False,
            piloting=False,
            engineering=False,            
            choice_one='challenge',
            choice_two='-1 morale',
            success='No Effect',
            partial=None,
            failure='-1 morale, and the Admiral discards 2 Skill Cards.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=9,
                            threshold=None,
                            politics=True,
                            tactics=True,
                            leadership=False,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(category='raptor',value=1,loc_from='destroyed',loc_to='hangar')
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='morale',value=-1)
                                    ),
                                effect_two=dict(
                                    function='skills',
                                    arguments=dict(player='admiral',category='any',value=-2)
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    network_computers=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='NETWORK COMPUTERS',
            flavor='Colonel, you know the Old Man would never do this.  No computer networks on his ship.  -Kelly',
            player='current',
            level=11,
            threshold=None,
            politics=True,
            tactics=False,
            leadership=True,
            piloting=False,
            engineering=True,            
            choice_one='challenge',
            choice_two='-1 population and decrease the Jump Preparation track by 1.',
            success='Increase the Jump Preparation track by 1.',
            partial=None,
            failure='-1 population and place 1 centurion marker at the start of the Boarding Party track.',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=11,
                            threshold=None,
                            politics=True,
                            tactics=False,
                            leadership=True,
                            piloting=False,
                            engineering=True,
                            success=dict(
                                effect_one=dict(
                                    function='jump',
                                    arguments=dict(value=+1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='population',value=-1)
                                    ),
                                effect_two=dict(
                                    function='boarding',
                                    arguments=dict(value=1,activate=False)
                                    ),                                
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='population',value=-1)
                            ),
                        effect_two=dict(
                            function='jump',
                            arguments=dict(value=-1)
                            ),                        
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    scouting_fuel=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='SCOUTING FOR FUEL',
            flavor='...scouring neighboring star systems and we anticipate they\'ll soon find more tyllium.  -Laura Roslin',
            player='current',
            level=12,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=False,            
            choice_one='challenge',
            choice_two='Roll a die.  If 4 or lower, -1 fuel.',
            success='+1 fuel',
            partial=None,
            failure='-1 fuel and destroy 1 raptor',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=12,
                            threshold=None,
                            politics=False,
                            tactics=False,
                            leadership=True,
                            piloting=True,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='fuel',value=+1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='fuel',value=-1)
                                    ),
                                effect_two=dict(
                                    function='ships',
                                    arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                                    ),                                
                                ),
                            ),
                        ),
                    result_two=dict(
                        function='roll',
                        arguments=dict(
                            threshold=4,
                            result=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='fuel',value=-1)
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    colonial_day=dict(
        display=dict(
            cylons='basestar_nukes',
            jump=True,
            title='COLONIAL DAY',
            flavor='Survivors from each of the Twelve Colonies are selecting delegates for the Interim Quorum.  -McManus',
            player='current',
            level=10,
            threshold=None,
            politics=True,
            tactics=False,
            leadership=True,
            piloting=False,
            engineering=False,            
            choice_one='challenge',
            choice_two='-1 morale',
            success='+1 morale',
            partial=None,
            failure='-2 morale',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=10,
                            threshold=None,
                            politics=True,
                            tactics=False,
                            leadership=True,
                            piloting=False,
                            engineering=False,
                            success=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='morale',value=+1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='morale',value=-2)
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='resources',
                            arguments=dict(category='morale',value=-1)
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='basestars',
                arguments=dict(action='attack')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    send_survey=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='SEND SURVEY TEAM',
            flavor='Frankly it\'s more efficient for me to gather my own initial samples.  -Gaius Baltar',
            player='current',
            level=15,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=True,
            engineering=True,            
            choice_one='challenge',
            choice_two='Roll a die.  If 5 or less, -1 fuel.',
            success='No Effect',
            partial=None,
            failure='The current player is sent to "Sickbay" and destroy 1 raptor',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=15,
                            threshold=None,
                            politics=False,
                            tactics=False,
                            leadership=True,
                            piloting=True,
                            engineering=True,
                            success=dict(
                                effect_one=dict(
                                    function=None,
##                                    arguments=dict(category='raptor',value=1,loc_from='destroyed',loc_to='hangar')
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='move',
                                    arguments=dict(player='current',location='sick')
                                    ),
                                effect_two=dict(
                                    function='ships',
                                    arguments=dict(category='raptor',value=1,loc_from='hangar',loc_to='destroyed')
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='roll',
                            arguments=dict(
                                threshold=5,
                                result=dict(
                                    effect_one=dict(
                                        function='resources',
                                        arguments=dict(category='fuel',value=-1)
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),

    crippled_raider=dict(
        display=dict(
            cylons='raiders',
            jump=True,
            title='CRIPPLED RAIDER',
            flavor='Contact.  Single Raider... same telltales.  Seems to be flying in circles.  -Felix Gaeta',
            player='current',
            level=10,
            threshold=None,
            politics=False,
            tactics=False,
            leadership=True,
            piloting=False,
            engineering=True,            
            choice_one='challenge',
            choice_two='Roll a die.  If 4 or lower, place 3 raiders in front of Galactica and 1 civilian ship behind it.',
            success='Increase the Jump Preparation track by 1.',
            partial=None,
            failure='-1 population',
            ),
        actions=dict(
            action_one=dict(
                function='choice',
                arguments=dict(
                    player='current',
                    result_one=dict(
                        function='challenge',
                        arguments=dict(
                            level=10,
                            threshold=None,
                            politics=False,
                            tactics=False,
                            leadership=True,
                            piloting=False,
                            engineering=True,
                            success=dict(
                                effect_one=dict(
                                    function='jump',
                                    arguments=dict(value=+1)
                                    ),
                                ),
##                            partial=dict(
##                                effect_one=dict(
##                                    function='resources',
##                                    arguments=dict(category='morale',value=-1)
##                                    ),
##                                ),                    
                            failure=dict(
                                effect_one=dict(
                                    function='resources',
                                    arguments=dict(category='population',value=-1)
                                    ),
                                ),
                            ),
                        ),
                    result_two=dict(
                        effect_one=dict(
                            function='roll',
                            arguments=dict(
                                threshold=4,
                                result=dict(
                                    effect_one=dict(
                                        function='ships',
                                        arguments=dict(category='raider',value=3,loc_from='cyclon fleet',loc_to='west')
                                        ),
                                    effect_two=dict(
                                        function='ships',
                                        arguments=dict(category='civilian',value=1,loc_from='human fleet',loc_to='east')
                                        ),                                    
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            action_two=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
##                arguments=dict(action='raiders')
                ),
            action_three=dict(
                function='jump',
                arguments=dict(value=+1)
                ),
            ),
        ),
    )

# Cylon Attack Cards
super_crisis_data=dict(    
    thirty_three=dict(
        display=dict(
            title='THIRTY-THREE',
            cylons='raiders',
            jump=False,
            west  = dict(
                basestars = 1,
                ),
            neast = dict(
                civilians = 1,                
                ),
            east =  dict(
                civilians = 1,                
                ),
            seast = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            swest = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            rule='Relentless Pursuit:  Keep this card in play until a civilian ship or basestar is destroyed.  If this card is in play when the fleet jumps, shuffle it back into the Crisis deck.',
            ),
        actions=dict(
            action_one=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='west',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='vipers',value=1,loc_to='seast',loc_from='hangar')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='vipers',value=1,loc_to='swest',loc_from='hangar')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='neast',loc_from='human fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='east',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='seast',loc_from='human fleet')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='swest',loc_from='human fleet')
                ),
            action_nine=dict(
                function='pursuit',
                arguments=dict(status='enabled')
                ),
            ),        
        ),
    surrounded=dict(
        display=dict(
            title='SURROUNDED',
            cylons='basestar fires',
            jump=False,            
            west  = dict(
                raiders   = 4,
                ),
            nwest = dict(
                basestars = 1,
                ),
            neast = dict(
                heavies   = 1,
                raiders   = 3,
                ),
            east =  dict(
                civilians = 1,                
                ),
            seast = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            swest = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            rule='Panic:  The current player must discard 3 Skill Cards.',
            ),
        actions=dict(
            action_one=dict(
                function='basestar',
                arguments=dict(action='attack')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='raider',value=4,loc_to='west',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='nwest',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='heavy',value=1,loc_to='neast',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='raiders',value=3,loc_to='neast',loc_from='cylon fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='east',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='vipers',value=1,loc_to='seast',loc_from='hangar')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='seast',loc_from='human fleet')
                ),
            action_nine=dict(
                function='ships',
                arguments=dict(category='vipers',value=1,loc_to='swest',loc_from='hangar')
                ),
            action_ten=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='swest',loc_from='human fleet')
                ),                        
            action_eleven=dict(
                function='skills',
                arguments=dict(player='current',category='any',value=-3)
                ),
            ),        
        ),
    raiding_party=dict(
        display=dict(
            title='RAIDING PARTY',
            cylons='raiders',
            jump=False,            
            neast = dict(
                basestars = 1,
                raiders   = 3,
                ),
            east =  dict(
                heavies   = 2,
                raiders   = 2,
                ),
            seast = dict(
                civilians = 1,                
                ),
            swest = dict(
                vipers    = 2,
                civilians = 2,                
                ),
            rule='FTL Failure:  Move the fleet token 1 space towards the start of the Jump Preparation track.',
            ),
        actions=dict(
            action_one=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='neast',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='raider',value=3,loc_to='neast',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='raider',value=2,loc_to='east',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='heavy',value=2,loc_to='east',loc_from='cylon fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='east',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='seast',loc_from='human fleet')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='vipers',value=1,loc_to='swest',loc_from='hangar')
                ),
            action_nine=dict(
                function='jump',
                arguments=dict(value=-1)
                ),                        
            ),        
        ),
    besieged=dict(
        display=dict(
            title='BESIEGED',
            cylons='raiders',
            jump=False,            
            west  = dict(
                civilians = 1,
                ),
            nwest = dict(
                civilians = 1,                
                ),
            east =  dict(
                heavies   = 1,
                ),
            seast = dict(
                basestars = 1,
                ),
            swest = dict(
                raiders   = 4,
                vipers    = 2,
                civilians = 1,                
                ),
            rule='Heavy Casualties:  The 4 raiders that were just setup are immediately activated.',
            ),
        actions=dict(
            action_one=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='seast',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='raider',value=4,loc_to='swest',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='heavy',value=1,loc_to='east',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='west',loc_from='human fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='nwest',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='swest',loc_from='human fleet')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='vipers',value=2,loc_to='swest',loc_from='hangar')
                ),
            action_nine=dict(
                function='raiders',
                arguments=dict(location='swest',value=4)
                ),
            ),        
        ),
    heavy_assault=dict(
        display=dict(
            title='HEAVY ASSAULT',
            cylons='raiders',
            jump=False,            
            west  = dict(
                basestars = 1,
                ),
            nwest = dict(
                basestars = 1,
                ),
            east =  dict(
                civilians = 1,                
                ),
            seast = dict(
                civilians = 1,                
                ),
            swest = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            rule='Heavy Bombardment:  Each basestar immediately attacks Galactica.',
            ),
        actions=dict(
            action_one=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='west',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='nwest',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='east',loc_from='human fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='seast',loc_from='human fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilians',value=1,loc_to='swest',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='vipers',value=1,loc_to='swest',loc_from='hangar')
                ),            
            action_eight=dict(
                function='basestar',
                arguments=dict(action='attack',location='all',value='all')
                ),
            ),        
        ),
    jammed_assault=dict(
        display=dict(
            title='JAMMED ASSAULT',
            cylons='raiders',
            jump=False,            
            west  = dict(
                civilians = 1,
                ),
            nwest = dict(
                raiders   = 4,
                ),
            neast = dict(
                basestars = 1,
                heavies   = 2,
                ),
            east =  dict(
                civilians = 1,                
                ),
            seast = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            swest = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            rule='Communications Jamming:  Keep this card in play until the fleet jumps.  Players may not activate the "Communications" location.',
            ),
        actions=dict(
            action_one=dict(
                function='raiders',
                arguments=dict(location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='neast',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='heavy',value=2,loc_to='neast',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='raider',value=4,loc_to='nwest',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='west',loc_from='human fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='neast',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='seast',loc_from='human fleet')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='swest',loc_from='human fleet')
                ),
            action_nine=dict(
                function='ships',
                arguments=dict(category='viper',value=1,loc_to='seast',loc_from='hangar')
                ),
            action_ten=dict(
                function='ships',
                arguments=dict(category='viper',value=1,loc_to='swest',loc_from='hangar')
                ),
            action_eleven=dict(
                function='jamming',
                arguments=dict(status='jammed')
                ),            
            ),        
        ),
    ambush=dict(
        display=dict(
            title='AMBUSH',
            cylons='basestar fires',
            jump=False,            
            west  = dict(
                raiders   = 4,
                ),
            neast = dict(
                civilians = 1,                
                ),
            east =  dict(
                basestars = 1,
                raiders   = 4,
                ),
            seast = dict(
                vipers    = 2,
                civilians = 1,                
                ),
            swest = dict(
                civilians = 1,                
                ),
            rule='Training new Pilots:  Keep this card in play until the fleet jumps.  Each unmanned viper suffers a -2 penalty to its attack rolls.',
            ),
        actions=dict(
            action_one=dict(
                function='basestar',
                arguments=dict(action='attack',location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='east',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='raider',value=4,loc_to='west',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='raider',value=4,loc_to='east',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='neast',loc_from='human fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='seast',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='swest',loc_from='human fleet')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='viper',value=2,loc_to='seast',loc_from='hangar')
                ),
            action_nine=dict(
                function='training',
                arguments=dict(status='training')
                ),
            ),        
        ),
    tactical_strike=dict(
        display=dict(
            title='TACTICAL STRIKE',
            cylons='raiders',
            jump=False,            
            west  = dict(
                heavies   = 1,
                ),
            neast = dict(
                civilians = 1,                
                ),
            east =  dict(
                civilians = 1,                
                ),
            seast = dict(
                vipers    = 2,
                civilians = 1,                
                ),
            swest = dict(
                basestars = 1,
                raiders   = 5,
                ),
            rule='Hangar Assault:  Damage 2 vipers in the reserves.',
            ),
        actions=dict(
            action_one=dict(
                function='raiders',
                arguments=dict(action='attack',location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='swest',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='heavy',value=1,loc_to='west',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='raider',value=5,loc_to='swest',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='neast',loc_from='human fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='east',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='seast',loc_from='human fleet')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='viper',value=2,loc_to='seast',loc_from='hangar')
                ),
            action_nine=dict(
                function='ships',
                arguments=dict(category='viper',value=2,loc_from='hangar',loc_to='damaged')
                ),
            ),        
        ),
    cylon_swarm=dict(
        display=dict(
            title='CYLON SWARM',
            cylons='basestar fires',
            jump=False,            
            west  = dict(
                basestars = 1,
                raiders   = 5,
                ),
            nwest = dict(
                heavies   = 1,
                ),
            east =  dict(
                civilians = 1,                
                ),
            seast = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            swest = dict(
                vipers    = 1,
                civilians = 1,                
                ),
            rule='Massive Deployment:  Keep this card in play until the fleet jumps.  Each time a basestar launches raiders or heavy raiders, it launches 1 additional ship of the same type.',
            ),
        actions=dict(
            action_one=dict(
                function='basestar',
                arguments=dict(action='attack',location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='west',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='heavy',value=1,loc_to='nwest',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='raider',value=5,loc_to='west',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='east',loc_from='human fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='seast',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='swest',loc_from='human fleet')
                ),            
            action_eight=dict(
                function='ships',
                arguments=dict(category='viper',value=1,loc_to='seast',loc_from='hangar')
                ),
            action_nine=dict(
                function='ships',
                arguments=dict(category='viper',value=1,loc_from='swest',loc_to='hangar')
                ),
            action_ten=dict(
                function='massive_deployment',
                arguments=dict(status='active')
                ),            
            ),        
        ),
    boarding_parties=dict(
        display=dict(
            title='BOARDING PARTIES',
            cylons='heavies',
            jump=False,            
            west  = dict(
                heavies   = 2,
                ),
            nwest = dict(
                basestars = 1,
                raiders   = 4,
                ),
            neast = dict(
                heavies   = 2,
                ),
            east =  dict(
                civilians = 1,                
                ),
            seast = dict(
                civilians = 2,                
                ),
            rule='Surprise Assault:  There are no vipers in this setup.',
            ),
        actions=dict(
            action_one=dict(
                function='heavies',
                arguments=dict(action='attack',location='all',value='all')
                ),
            action_two=dict(
                function='ships',
                arguments=dict(category='basestar',value=1,loc_to='nwest',loc_from='cylon fleet')
                ),
            action_three=dict(
                function='ships',
                arguments=dict(category='heavy',value=2,loc_to='west',loc_from='cylon fleet')
                ),
            action_four=dict(
                function='ships',
                arguments=dict(category='heavy',value=2,loc_to='neast',loc_from='cylon fleet')
                ),
            action_five=dict(
                function='ships',
                arguments=dict(category='raiders',value=4,loc_to='nwest',loc_from='cylon fleet')
                ),
            action_six=dict(
                function='ships',
                arguments=dict(category='civilian',value=1,loc_to='east',loc_from='human fleet')
                ),
            action_seven=dict(
                function='ships',
                arguments=dict(category='civilian',value=2,loc_to='seast',loc_from='human fleet')
                ),            
            ),        
        ),
    )
